package com.example.shopsystem.dao;

import com.example.shopsystem.entity.BusCost;
import com.example.shopsystem.entity.Business;
import com.example.shopsystem.entity.Good;
import com.example.shopsystem.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BusinessMapper {
    Boolean register(@Param("business") Business business);

    Business queryBusiness(@Param("businessId") String businessId);

    List<User> ViewInvitedCustomers(@Param("businessId") String businessId);

    Boolean busModifyInfo(@Param("business") Business business);

    Boolean insertBusCost(@Param("busCost") BusCost busCost);

    Boolean updateMoneyPwd(@Param("moneyPwd") int moneyPwd, String businessId);

    List<BusCost> viewBusCost(@Param("businessId") String businessId);

    List<Business> viewBusinessList(@Param("state") int state);
}
